<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>党员卡管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/partycard/partycard/">党员卡管理列表</a></li>
		<li><a href="${ctx}/partycard/partycard/form">党员卡管理添加</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="partycard" action="${ctx}/partycard/partycard/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		
		<ul class="ul-form">
     		<li><label>党员卡卡号：</label>
				<form:input path="cardnumber" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>党员姓名：</label>
				<form:input path="personname" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="btns"><a href=''><input id="btnImport" class="btn btn-primary" type="button" value="下载设备插件"/></a></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th style="width:5%">序号</th>
				<th>党员卡卡号</th>
				<th>党员姓名</th>
				<shiro:hasPermission name="partycard:partycard:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="partycard" varStatus="rowIndex">
			<tr>
			<td style='text-align: center'>${rowIndex.index+1}</td>	
				<td>
					${partycard.cardnumber}
				</td>
				<td>
					${partycard.personname}
				</td>
				<shiro:hasPermission name="partycard:partycard:edit"><td>
					<a href="${ctx}/partycard/partycard/delete?id=${partycard.id}" onclick="return confirmx('确认要删除该党员卡管理吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>